<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$info['id']?'编辑':'修改'}留言板</h2>
    </div>
    <volist name="list" id="vo">
    <form action="{:U('save')}" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="{$vo.id}">
        <div class="form-item">
            <label class="item-label">留言人<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$vo.name}" style="width:100px;">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">联系手机<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="mobile" value="{$vo.mobile}" style="width:150px;">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">留言标题</label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$vo.title}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">留言内容<span class="check-tips"></span></label>
            <div class="controls">
                <textarea  class="textarea input-large" name="content" rows="10" >{$vo.content}</textarea>
            </div>
        </div>


        <div class="form-item">

            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>

    </form>
    </volist>
</block>